﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AMS.DataAccess.Trademark.Interfaces;
using AMS.DataAccess.Trademark.BO;

public partial class RecvFile_ShowRecvFileSimple : BaseWorkPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Utils.ParseIntQueryString(Request, "id", ref rfId))
        {
            DoDataBind();
        }
        else
        {
            Server.Transfer("~/Error.aspx?msg=非法参数");
        }
    }

    int rfId;

    private void DoDataBind()
    {
        IRecvFileManager rfMgr = ManagerFactory.CreateRecvFileManager();
        RecvFileInfo rf = rfMgr.GetRecvFile(CallContext, rfId);
        if (rf != null)
        {
            ltrDetail.Text = rf.RFContent;
            if (string.IsNullOrEmpty(rf.RFContent))
            {
                ltrDetail.Text = "内容为空";
            }
        }
    }

}
